﻿using System.ComponentModel;
using System.Xml;
using System.Xml.Serialization;

namespace Bpmn.Xml;

/// <remarks/>
[Serializable]
[XmlType(Namespace = "http://www.omg.org/spec/BPMN/20100524/MODEL", TypeName = "tItemDefinition")]
[XmlRoot("itemDefinition", Namespace = "http://www.omg.org/spec/BPMN/20100524/MODEL", IsNullable = false)]
public partial class ItemDefinition : RootElement
{
    /// <remarks/>
    [XmlAttribute("structureRef")]
    public XmlQualifiedName StructureRef { get; set; } = default!;

    /// <remarks/>
    [XmlAttribute]
    [DefaultValue(false)]
    public bool IsCollection { get; set; } = false;

    /// <remarks/>
    [XmlAttribute]
    [DefaultValue(ItemKind.Information)]
    public ItemKind ItemKind { get; set; } = ItemKind.Information;
}
